package com.cloud.dao;

import com.cloud.domain.User;
import com.cloud.pojo.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Tangtao
 * @Date: 2022/4/11 11:00
 * @Description: User personal information management data persistence layer
 * @ClassName: UserInfoDao
 */

@Mapper
public interface UserInfoDao {

    public int register(@Param("userInfo") UserInfo userInf);

    public User loginByCardId(@Param("userInfo") UserInfo userInfo);

    public User loginByPhoneNumber(@Param("userInfo") UserInfo userInfo);

    public int updateUserInfo(@Param("userInfo") UserInfo userInfo);

    public int updateUserType(@Param("userInfo") UserInfo userInfo);

    public UserInfo getInfo(@Param("userInfo") UserInfo userInfo);

    public int updatePwd(@Param("userInfo") UserInfo userInfo);

    public List<UserInfo> getAllUserInfo();

    public int deleteUserInfoById(@Param("userInfo") UserInfo userInfo);

    public int deleteUserInfoByNum(@Param("userInfo") UserInfo userInfo);

}
